package com.example.yls.demoa;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;

public class ViewNewsActivity extends AppCompatActivity {
    private String newsUrl;
    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view_news);

        newsUrl = getIntent().getStringExtra("NEWS_URL");

        webView = findViewById(R.id.wv_news);
        webView.loadUrl(newsUrl);

    }
}
